﻿<!DOCTYPE html>

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <title></title>
</head>
<body>
    <script>
        //函数内部 局部变量和全局变量重名时 优先使用局部变量
        let money = 100;
        function play() {
            let money = 20;
            console.log(money);
        }
        play();
    </script>
</body>
</html>